package com.blog.distribute.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;
import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * @ClassName XTokenRequestInterceptor
 * @Destription 请求拦截器(全局的)
 * @Author 天堂小野花
 * @Date 2025/8/1  23:37
 * @Version 1.0
 */
@Component
public class XTokenRequestInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate requestTemplate) {
        System.out.println(" 拦截器启动....................." );
        //requestTemplate.header("X-Token", UUID.randomUUID().toString());
    }
}
